package com.lichuang.fruitvarietysm.goods.mapper;

import com.lichuang.fruitvarietysm.goods.entity.Attribute;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lichuang.fruitvarietysm.goods.entity.CategoryAttributeDTE;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author shuaihang
 * @since 2019-05-25
 */
@Repository
public interface AttributeMapper extends BaseMapper<Attribute> {
    /**
     * 根据分类id，查询相应的属性和值。
     * @param category_id
     * @param pid
     * @return
     */
    List<CategoryAttributeDTE> sCategoryAttributeDTES(@Param("category_id")Integer category_id, @Param("pid")Integer pid);

}
